Skip to content

Fix: Decline extension functions on receivers with off-classpath supertypes; pin Icons.Default.Add in the stubs - #80

Merged
b-re-w merged 3 commits into
developfrom
work/ext-fn-receiver
Oct 3, 2026
Merged

b-re-w merged 3 commits into
developfrom
work/ext-fn-receiver

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 3, 2026

Copy link
Copy Markdown
Member

Closes #66
Closes #68

Defect fixed: extension functions whose receiver has a supertype missing from the compile classpath are declined with a reason (same rule as properties, #38). #68 was already fixed by #67; consumer.py now asserts assert_type(Icons.Default.Add, ImageVector) (fails on pre-#67 stubs with 'Expression is of type Any', passes on #67 stubs).
Verification (coordinator, separate modules): plugin 225/0, desktopTest 561/0, ksp artifact 35/0, app 70/0, compose 111/0, androidNative OK. Red without the fix: PropertyBindingTest.aReceiverWithASupertypeOffTheClasspathHasItsExtensionFunctionsDeclined.

b-re-w added 3 commits October 3, 2026 14:01
…ault.Add in the stubs (#68)

consumer.py asserts the type with assert_type: the pre-#67 stubs (run 37097934282) fail it with
'Expression is of type Any, not ImageVector'; the #67 stubs (run 37098191598) pass.
@b-re-w
b-re-w merged commit 368d40a into develop Oct 3, 2026
7 checks passed
@b-re-w
b-re-w deleted the work/ext-fn-receiver branch October 3, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant